from django.db import models
from django.contrib.auth.models import User
from universidades.models import Universidad

class Usuario(models.Model):
    user = models.OneToOneField(User)
    universidad = models.ForeignKey(Universidad)

    def __unicode__(self):
        return self.user

    class Meta:
        verbose_name_plural = 'Usuario'

        
    #     if not name:
    #         name = self.user.username
        
    #     return name + " - " + self.universidad.nombre
